<template>
  <div class="BIG">
    <header>
      <h1>智农能业信息集成面板与控制平台</h1>
      <!--温湿度，光照，一氧化碳，土壤湿度-->
    </header>
    <div class="bigbox">
      <!-- 点击效果 -->
      <!-- <input type="checkbox" id="checkbox" />
        <label for="checkbox">
            <svg t="1626094954416" class="icon" viewbox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
                p-id="1524" width="40" height="40">
                <path
                    d="M256 426.688v170.624h85.312V426.688H256zM768 128h-85.312v768H768V128zM469.312 256v512h85.376V256H469.312z"
                    p-id="1525" fill="#e6e6e6"></path>
            </svg>
        </label> -->
      <ul>
        <li>
          <router-link to="/mian/profile">
            <img src="../../static/image/icons/mian.png" />
            <span>众观全局</span>
          </router-link>
        </li>
        <li>
          <router-link to="/mian/device/device">
            <img src="../../static/image/icons/device.png" />
            <span>了如指掌</span>
          </router-link>
        </li>
        <li>
          <router-link to="/mian/plan">
            <img src="../../static/image/icons/plan.png" />
            <span>深谋远虑</span>
          </router-link>
        </li>
        <li>
          <router-link to="/mian/weather">
            <img src="../../static/image/icons/weather.png" />
            <span>洞若观火</span>
          </router-link>
        </li>
        <li>
          <router-link to="/mian/settings">
            <img src="../../static/image/icons/settings.png" />
            <span>千人千面</span>
          </router-link>
        </li>
      </ul>
    </div>
    <div class="rbox"><router-view/></div>
  </div>
</template>

<script>
export default {
  name: 'mian',
  mounted() {
    document.querySelector('body').setAttribute('style', 'background-image: url(/static/image/bg.png)', 'background-size: cover')
  }
}
</script>

<style scoped>
body {
  position:absolute;
  font-family: Arial, Helvetica, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  /* background-image: url(/static/image/bg.jpg);
  background-color: #191970;
  background-size: cover ; */
  /* 行高是字体1.15倍 */
  line-height: 1.15;
}
header {
  position: relative;
  height: 3.25rem;
  background: url(/static/image/head_bg.png) no-repeat top center;
  background-size: 100% 100% ;
}
header h1 {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  line-height: 2.5rem;
}
.bigbox {
  position: relative;
  margin-top: -33px;
  width: 0%;
  height: 3.125rem;
  /* background-color: #fff; */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

/* .bigbox input {
    display: none;
} */

.bigbox label {
  position: absolute;
  top: 10px;
  left: 240px;
  font-size: 20px;
  color: #666;
  padding-left: 20px;
  /* 光标样式
     1）、div{ cursor:default }默认正常鼠标指针
     2）、div{ cursor:hand }和div{ cursor:text } 文本选择效果
     3）、div{ cursor:move } 移动选择效果
     4）、div{ cursor:pointer } 手指形状 链接选择效果
     5）、div{ cursor:url(url图片地址) }设置对象为图片 */
  cursor: pointer;
  transition: all 0.5s;
}

.bigbox ul {
  position: absolute;
  top: 0;
  left: -2.5rem;
  width: 180px;
  height: 100vh;
  background-color: #2b3044;
  transition: all 1s;
}

.bigbox ul li {

  width: 100%;
  height: 70px;
  margin-bottom: 10px;
  list-style-type: none;
}

.bigbox ul li:first-child {
  display: flex;
  align-items: center;
  margin-top: 60px;
}

.bigbox ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  color: #d2d2d2;

  text-decoration: none;
  transition: all 0.5s;
}

.bigbox ul li a img {
  width: 35px;
  height: 35px;
  margin: 0 25px;
}

.bigbox ul li a span {
  font-size: 14px;
}

.bigbox ul li a:hover {
  color: #fff;
  background-color: rgb(47, 183, 204);
}

/* 图片旋转 */
/* .bigbox input:checked + label img {
    transform: rotateX(180deg);
} */
.rbox{
  margin-left: 120px;
}
</style>
